/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo916B;

//import demo916.Employee;
import demo1.demo11.Employee;


/**
 *
 * @author Administrator
 */
public class EmployyArrayDemo {
   
  
    public static void main(String args[]){
       
        Employee employees[]=new Employee[3];
        
        employees[0]=new Employee("123", "li", 2090);
        employees[1]=new Employee("124", "wang", 3090);
        employees[2]=new Employee("125", "zhao", 4090);
        
        double max=employees[0].getSalary();
        double min=employees[0].getSalary();
        double sum=employees[0].getSalary();;
        
        for(int i=1;i<employees.length;i++){
           if(max<employees[i].getSalary()){
               max=employees[i].getSalary();
           }
           if(min>employees[i].getSalary()){
               min=employees[i].getSalary();
           }
           sum=sum+employees[i].getSalary();
            
            //employees[i].getInfo();
        }
    
        
        
        
        
        
        
    }
    
}
